Question Prasanth Annamreddy · Nov 20, 2023

Error on FHIR resource publish through Process to FHIR repository

I have received 2 errors while publishing Patient data to repository. Message viewer displays like below and the Application log found  bold content.

Could you please help me on this to resolve the errors.

An error occurred with the web application.
It has been logged to system error log (System Operation>System Logs>Application Error Log).

"<METHOD DOES NOT EXIST>OnPage+42^EnsPortal.MessageContents.1 *%Id,HS.FHIRServer.API.Data.Request : CSP Error"

Business Operation Event logs displays "ERROR <Ens>ErrRequestNotHandled: Request message '3@HS.FHIRServer.API.Data.Request' not handled"

Please suggest what is the issue here ..

Thanks,

$ZV: IRIS for Windows (x86-64) 2023.2 (Build 227U) Mon Jul 31 2023 17:48:09 EDT [Health:5.1.3]

Comments

Enrico Parisi · Nov 20, 2023

Difficult to tell from the limited info provided.

What I can guess is that it seems you are trying to use a serial class (HS.FHIRServer.API.Data.Request) as message.

But I might be wrong, please provide more context.

Enrico

0
Prasanth Annamreddy · Nov 20, 2023

I tried to send the Patient resource to FHIR repository through HS.FHIRServer.API.Data.Request object and now the above error disappear but my request not send to the repository and see the Operation log displays and I can send the data from Postman. I couldn't see any request coming through from interface in HTTP Access log.

ERROR #5770: Object open failed because 'ServiceIdIdx' key value of '' was not found error. Could you please suggest why this error occurs.

#dim patient AS HS.FHIR.DTL.vR4.Model.Base.Resource
    #dim interopRequest AS HS.FHIRServer.Interop.Request
    Set apiRequest = ##class(HS.FHIRServer.API.Data.Request).%New()
    Set apiRequest.QueryString=""
    Set apiRequest.BaseURL="/csp/healthshare/fhirdemo/fhir/r4"
    Set apiRequest.RequestMethod="POST"
    Set apiRequest.RequestFormatCode="JSON"
    Set apiRequest.ResponseFormatCode="JSON"
    Set apiRequest.RequestPath="/Patient"

0
Enrico Parisi  Nov 20, 2023 to Prasanth Annamreddy

Again, difficult to tell from the limited info provided.

What are you doing after instantiating  HS.FHIRServer.API.Data.Request ?

HS.FHIRServer.API.Data.Request is a serial class, not a persistent class, are you using it in a SendRequest(Sync/Async) call? If so, then you cannot do that.

But again, this is only a guess, please provide more context.

Enrico

0
Ashok Kumar T · Nov 20, 2023

Hi @Prasanth Annamreddy 
If you're using Interoperability production to publish your FHIR resources. Then you may instantiate the object for the class HS.FHIRServer.Interop.Request to process the request and production expects this object as a input . Otherwise it will throw "ERROR <Ens>ErrRequestNotHandled: Request message not handled"

0
Luis Angel Pérez Ramos · Nov 20, 2023

Take a look to this documentation page, it explains how to use the interoperability classes of FHIRServer requests.

0
Prasanth Annamreddy · Nov 22, 2023

Hi All, 

Thank you for your support,

I could able to find the issue and corrected. Now I can able to publish the data to FHIR repository URL. 

Thank you all for your thoughts,

0