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"