ministero-salute / it-fse-support

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

Crash Program - Sprint 5 - RDE Lombardia , RDA Emilia Romagna- UC4 - Richiesta verifica #846

Open EugenioGuagliardi opened 6 months ago

EugenioGuagliardi commented 6 months ago

Salve, abbiamo eseguito un test UC4 ed otteniamo la seguente risposta dal Gateway :

 | dataOra = 2024 - 05 - 16 17: 14: 00: 128 | server = null | ID_DC = cc49a341 - 0560 - 4a76 - a479 - 708a59c5ef4b | ID_COOP = null | elapsed = 5653 | DIR = CLI | OUT = /govway/rest / in / FSE / gateway / v1 / documents / 2.16.840.1.113883.2.9.2.30.4.4 % 5E030703.RRDOCU.66667dac - 1396 - 11ef - a9d8 - 0242a89a8ac7 / metadata # null # {
    "traceID": "6c3f3ee51f75a412",
    "spanID": "6c3f3ee51f75a412",
    "type": "/msg/ini-error",
    "title": "Ini error.",
    "detail": "{\"traceID\":\"00000000000000006c3f3ee51f75a412\",\"spanID\":\"c90a9de00ba33e55\",\"type\":\"/errors\",\"title\":\"Generic\",\"detail\":\"it.finanze.sanita.fse2.ms.iniclient.exceptions.base.BusinessException: SEVERITY:urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:ErrorERROR_CODE:CRF2CODE CONTEXT:RDA generated an internal error.\",\"instance\":\"error/generic\"}",
    "status": 500,
    "instance": "/msg/service-error/ini"
}

nel servizio di Status otteniamo la seguente risposta:

{
    "traceID": "7c2595afd0d8a775",
    "spanID": "a1da3f0d7672d4f5",
    "transactionData": [
        {
            "eventType": "RIFERIMENTI_INI",
            "eventDate": "2024-05-16T15:13:57.835+00:00",
            "eventStatus": "SUCCESS",
            "message": "Merge metadati effettuato correttamente",
            "identificativoDocumento": "2.16.840.1.113883.2.9.2.30.4.4^030703.RRDOCU.66667dac-1396-11ef-a9d8-0242a89a8ac7",
            "subject": "KRNBRS58M08B236S^^^&2.16.840.1.113883.2.9.4.3.2&ISO",
            "organizzazione": "030",
            "workflowInstanceId": "6500e9f0952f9a4b0cfc616b488e334e975160d56094ad36971ff538f086b227.47e03243d1^^^^urn:ihe:iti:xdw:2013:workflowInstanceId",
            "traceId": "6c3f3ee51f75a412",
            "issuer": "integrity:S1#030#REGIONELOMBARDIA-TEST",
            "expiringDate": "2025-05-16T15:13:57.845+00:00"
        },
        {
            "eventType": "EDS_UPDATE",
            "eventDate": "2024-05-16T15:13:58.128+00:00",
            "eventStatus": "SUCCESS",
            "message": "Update EDS effettuato correttamente",
            "identificativoDocumento": "2.16.840.1.113883.2.9.2.30.4.4^030703.RRDOCU.66667dac-1396-11ef-a9d8-0242a89a8ac7",
            "subject": "KRNBRS58M08B236S^^^&2.16.840.1.113883.2.9.4.3.2&ISO",
            "organizzazione": "030",
            "workflowInstanceId": "6500e9f0952f9a4b0cfc616b488e334e975160d56094ad36971ff538f086b227.47e03243d1^^^^urn:ihe:iti:xdw:2013:workflowInstanceId",
            "traceId": "6c3f3ee51f75a412",
            "issuer": "integrity:S1#030#REGIONELOMBARDIA-TEST",
            "expiringDate": "2025-05-16T15:13:58.139+00:00"
        }
    ]
}

riceviamo anche la notifica.

dataOra=2024-05-16 17:11:15:194|flow_name=notify-submit-objects-service|ID_DC=89eede91-1396-11ef-a4d1-06f610e1c2f6|ID_COOP=urn:uuid:b4f9e776-bbb4-4ad6-aa7b-83fba2ebf505|timestamp=1715872275194|elapsed=N/A|server=ITFSE03|sequenza=1|payload=<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
            <wsa:To>[https://fseservicetest.sanita.finanze.it/FSEININotificheWeb/NotifyCommunicationMetadata_Service_esterno</wsa:To](https://fseservicetest.sanita.finanze.it/FSEININotificheWeb/NotifyCommunicationMetadata_Service_esterno%3c/wsa:To)>
            <wsa:MessageID>urn:uuid:b4f9e776-bbb4-4ad6-aa7b-83fba2ebf505</wsa:MessageID>
            <wsa:Action>urn:fse:NotifySubmitObjects</wsa:Action>
      </soapenv:Header>
      <soapenv:Body>
            <NotifySubmitObjectsRequest xmlns="http://www.fascicolosanitario.gov.it/schema/typeSchemaNotifySubmitObjects">
                  <HomeCommunityId>urn:oid:2.16.840.1.113883.2.9.2.80</HomeCommunityId>
                  <RepositoryUniqueId>2.16.840.1.113883.2.9.2.30.4.5.30703</RepositoryUniqueId>
                  <DocumentUniqueId>2.16.840.1.113883.2.9.2.30.4.4^030703.RRDOCU.66667dac-1396-11ef-a9d8-0242a89a8ac7</DocumentUniqueId>
                  <PatientId>KRNLXD08L66E479X^^^&amp;2.16.840.1.113883.2.9.4.3.2&amp;ISO</PatientId>
            </NotifySubmitObjectsRequest>
      </soapenv:Body>
</soapenv:Envelope>
dataOra=2024-05-16 17:11:15:199|flow_name=notify-submit-objects-service|ID_DC=89eede91-1396-11ef-a4d1-06f610e1c2f6|ID_COOP=urn:uuid:b4f9e776-bbb4-4ad6-aa7b-83fba2ebf505|timestamp=1715872275199|elapsed=5|server=ITFSE03|sequenza=4|payload=<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Header>
            <Action xmlns="http://www.w3.org/2005/08/addressing">[http://www.fascicolosanitario.gov.it/wsdl/NotifySubmitObjects/NotifySubmitObjects/NotifySubmitObjects_PortType/NotifySubmitObjectsResponse</Action](http://www.fascicolosanitario.gov.it/wsdl/NotifySubmitObjects/NotifySubmitObjects/NotifySubmitObjects_PortType/NotifySubmitObjectsResponse%3c/Action)>
            <MessageID xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:32e88419-6272-4451-b27e-de6a59af6831</MessageID>
            <To xmlns="http://www.w3.org/2005/08/addressing">[http://www.w3.org/2005/08/addressing/anonymous</To](http://www.w3.org/2005/08/addressing/anonymous%3c/To)>
            <RelatesTo xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:b4f9e776-bbb4-4ad6-aa7b-83fba2ebf505</RelatesTo>
      </soap:Header>
      <soap:Body>
            <NotifySubmitObjectsResponse xmlns="http://www.fascicolosanitario.gov.it/schema/typeSchemaNotifySubmitObjects">
                  <Status>Success</Status>
            </NotifySubmitObjectsResponse>
      </soap:Body>
</soap:Envelope>dataOra=2024-05-16 17:11:15:194|flow_name=notify-submit-objects-service|ID_DC=89eede91-1396-11ef-a4d1-06f610e1c2f6|ID_COOP=urn:uuid:b4f9e776-bbb4-4ad6-aa7b-83fba2ebf505|timestamp=1715872275194|elapsed=N/A|server=ITFSE03|sequenza=1|payload=<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
            <wsa:To>[https://fseservicetest.sanita.finanze.it/FSEININotificheWeb/NotifyCommunicationMetadata_Service_esterno</wsa:To](https://fseservicetest.sanita.finanze.it/FSEININotificheWeb/NotifyCommunicationMetadata_Service_esterno%3c/wsa:To)>
            <wsa:MessageID>urn:uuid:b4f9e776-bbb4-4ad6-aa7b-83fba2ebf505</wsa:MessageID>
            <wsa:Action>urn:fse:NotifySubmitObjects</wsa:Action>
      </soapenv:Header>
      <soapenv:Body>
            <NotifySubmitObjectsRequest xmlns="http://www.fascicolosanitario.gov.it/schema/typeSchemaNotifySubmitObjects">
                  <HomeCommunityId>urn:oid:2.16.840.1.113883.2.9.2.80</HomeCommunityId>
                  <RepositoryUniqueId>2.16.840.1.113883.2.9.2.30.4.5.30703</RepositoryUniqueId>
                  <DocumentUniqueId>2.16.840.1.113883.2.9.2.30.4.4^030703.RRDOCU.66667dac-1396-11ef-a9d8-0242a89a8ac7</DocumentUniqueId>
                  <PatientId>KRNLXD08L66E479X^^^&amp;2.16.840.1.113883.2.9.4.3.2&amp;ISO</PatientId>
            </NotifySubmitObjectsRequest>
      </soapenv:Body>
</soapenv:Envelope>
dataOra=2024-05-16 17:11:15:199|flow_name=notify-submit-objects-service|ID_DC=89eede91-1396-11ef-a4d1-06f610e1c2f6|ID_COOP=urn:uuid:b4f9e776-bbb4-4ad6-aa7b-83fba2ebf505|timestamp=1715872275199|elapsed=5|server=ITFSE03|sequenza=4|payload=<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Header>
            <Action xmlns="http://www.w3.org/2005/08/addressing">[http://www.fascicolosanitario.gov.it/wsdl/NotifySubmitObjects/NotifySubmitObjects/NotifySubmitObjects_PortType/NotifySubmitObjectsResponse</Action](http://www.fascicolosanitario.gov.it/wsdl/NotifySubmitObjects/NotifySubmitObjects/NotifySubmitObjects_PortType/NotifySubmitObjectsResponse%3c/Action)>
            <MessageID xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:32e88419-6272-4451-b27e-de6a59af6831</MessageID>
            <To xmlns="http://www.w3.org/2005/08/addressing">[http://www.w3.org/2005/08/addressing/anonymous</To](http://www.w3.org/2005/08/addressing/anonymous%3c/To)>
            <RelatesTo xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:b4f9e776-bbb4-4ad6-aa7b-83fba2ebf505</RelatesTo>
      </soap:Header>
      <soap:Body>
            <NotifySubmitObjectsResponse xmlns="http://www.fascicolosanitario.gov.it/schema/typeSchemaNotifySubmitObjects">
                  <Status>Success</Status>
            </NotifySubmitObjectsResponse>
      </soap:Body>
</soap:Envelope>

Perchè riceviamo una risposta del genere dal Gateway a fronte di un esito positivo dallo status e notifica? Il test è da considerarsi positivamente?

Potete verificare e darci un riscontro anche dalla RER?

Grazie per la collaborazione

daniele-gubellini commented 6 months ago

Sull'aggiornamento metadati noi restituiamo una Soap Fault in quanto la messaggistica non ci risulta conforme alle specifiche (#761 ) Per quanto riguarda la notifica, se INI ve la manda direi che si tratta di un errore. Lo status non mi sembra positivo: vedo il "RIFERIMENTI_INI" (che ,confermo, va a buon fine) mentre non vedo il "SENT_TO_INI"