ministero-salute / it-fse-support

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

Errori in fase di pubblicazione per referto RSA - "Unknown ProcedureStatus code 'active'" #612

Closed MarcoKnezevichInsiel closed 8 months ago

MarcoKnezevichInsiel commented 9 months ago

Abbiamo rilevato il seguente errore in fase di pubblicazione:

{
    "traceID": "2df1473e75eaf6bd",
    "spanID": "2df1473e75eaf6bd",
    "type": "/msg/fhir-mapping-type",
    "title": "Mapping fhir fallito.",
    "status": 400,
    "detail": "Unknown ProcedureStatus code 'active'",
    "instance": "/fhir-resource"
}

In allegato il documento CLINICO-RSA_1.pdf.

Richiesta di pubblicazione:

{
  "healthDataFormat": "CDA",
  "mode": "ATTACHMENT",
  "tipologiaStruttura": "Ospedale",
  "attiCliniciRegoleAccesso": [],
  "identificativoDoc": "2.16.840.1.113883.2.9.2.60.4.4^TEST_INTEGRAZ_INT_RSA_PUBBLICAZIONE_2024_02_09T15_46_30.178250",
  "identificativoRep": "2.16.840.1.113883.2.9.2.60.4.5.301",
  "tipoDocumentoLivAlto": "REF",
  "assettoOrganizzativo": "AD_PSC009",
  "dataInizioPrestazione": "20230821181124",
  "dataFinePrestazione": "20230821181124",
  "conservazioneANorma": "CONS",
  "tipoAttivitaClinica": "ERP",
  "identificativoSottomissione": "2.16.840.1.113883.2.9.2.60.4.3.10001.51234564897.1",
  "descriptions": [],
  "administrativeRequest": "SSN",
  "priorita": false,
  "workflowInstanceId": "2.16.840.1.113883.2.9.2.60.4.4.8ff02be67cbaeff62a0e16e249ff37ed63671c6fae85b0d45ec3ff8416010a80.c9790079a0^^^^urn:ihe:iti:xdw:2013:workflowInstanceId"
}

tokens:

Authorization: Bearer eyJ4NWMiOlsiTUlJRmFqQ0NBMUtnQXdJQkFnSVVJdS93OFBHdGw3aW5JL2hyZ1g1ZnR6UkRidGt3RFFZSktvWklodmNOQVFFTEJRQXdWekVuTUNVR0ExVUVBd3dlUTBFZ1RXbHVhWE4wWlhKdklHUmxiR3hoSUZOaG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iOiJ0ZXN0LWludGVncmF6aW9uZS1pZCIsImV4cCI6MTcwNzU3NjM5NCwic3ViamVjdF9hcHBsaWNhdGlvbl92ZW5kb3IiOiJ0ZXN0LWludGVncmF6aW9uZS12ZW5kb3IiLCJpYXQiOjE3MDc0ODk5OTQsImp0aSI6ImUyZWI0MTViLTVmZjctNDUzYy04YzlmLTAwOTYyMDkzZGVkNSIsInBlcnNvbl9pZCI6IlpORFNETDAxQTAxRzI3M0ReXl4mMi4xNi44NDAuMS4xMTM4ODMuMi45LjQuMy4yJklTTyJ9.fZxRFkUz3kD2ETWc2Js8OhfBtpwmGqDx-XjfxkAj4o2ktBNSj2I6AXqKyabgv600NDV1gruiGrqFSbTA82n6eilm43VCC07Ysb3uaGzzfLHMXfuci6tLfMB1rmUzsQeCmHjFCHI_y-ofegF6kmvimgsmgM-udVC9WseoqQaBz-1G8oU1AEpyKSMw1DAgJoHv7v8eqcPbnkPF45bhKuvPjjf4CN30n3hZgL2SbT_RrcemRxoz5_cND7N-jKYQnUM8qX6HmF93lTNwgVESwwrjeAtb8jpBmXdAQWLg1yfu1mcqWfMxUUkxdspuBlNpB9I5XefFHVZSPXQ3MKk5b8Mx-Q

Sapreste indicarci la motivazione dell'errore?

Grazie e buona giornata

vigliottim commented 9 months ago

Buongiorno, grazie per la segnalazione. Verrà effettuato un'aggiornamento dello structure map per permettere la corretta valorizzazione dell'elemento status nella risorsa Procedure. Inoltre, abbiamo notato che nel CDA2 fornito l'elemento ClinicalDocument/componentOf/EncompassingEncounter/location/healthCareFacility non ha l'elemento id valorizzato. Da specifiche HL7 tale elemento è opzionale, ma per la trasformazione corretta in fhir del documento CDA2 risulta indispensabile. Pertanto, per evitare errori di trasformazione si consiglia di valorizzare tale elemento. Grazie.

MarcoKnezevichInsiel commented 9 months ago

Grazie per la risposta, Ci preoccupa non poco però che dati opzionali siano indispensabili per la trasformazione FHIR, è un tema che potrebbe avere impatti davvero importanti. Sapreste indicarci dove sono documentati i campi opzionali che vanno popolati obbligatoriamente per le trasformazioni FHIR?

LucaRogledi commented 8 months ago

Buongiorno, Le confermiamo che è stato rilasciato un aggiornamento dello structureMap. La invitiamo cortesemente a riprovare.

In merito alla sua ultima domanda, al momento non esiste una documentazione specifica che elenchi dettagliatamente quali campi opzionali debbano essere popolati obbligatoriamente per favorire l'esito positivo di tali trasformazioni.

Tuttavia, vogliamo sottolineare l'importanza di attribuire un identificativo (Id) a tutti gli elementi CDA2 che rappresentano strutture, location, organization e persone come i performer, practitioner, participant, eccetera. Questi elementi, durante la trasformazione in FHIR, generano risorse di tipo amministrativo, per le quali è stato deciso di adottare una strategia che prevede l'aggiornamento delle risorse esistenti, anziché la creazione continua di nuove risorse.

Questa pratica mira a garantire una gestione più efficiente e coerente delle risorse amministrative in FHIR.

vigliottim commented 8 months ago

Buonasera, non avendo ricevuto ulteriori riscontri, procediamo alla chiusura del presente ticket. Sarà possibile procedere con la riapertura nel caso in cui fosse necessario ulteriore supporto. Grazie.