Published on InterSystems Developer Community (https://community.intersystems.com)

Home > FHIR Request Resource Id is empty

Question
Ikara Ikliki · Nov 6, 2019

FHIR Request Resource Id is empty

I am sending a PUT FHIR message for a CodeSystem Resource using the defailt Service and server that was installed when I installed the FHIR on the NameSpace.

When I try to use the FHIR Request "id" property it is empty; e.g. pFHIRRequest.id is EMPTY. I really need to get this value, how can I get it?

I added a trace ion both the HS.FHIR.Service and HS.FHIR.Server.Process, details to follow:

The trace in HS.FHIR.Service is as follows, this is inside the OnProcessInput where the Id is validated I added the "else", it prints the line in the "else" and the result is an EMPTY input.id (nothing):

// FHIR resource id specified in the request URL must follow the format rules.
If '##class(HS.FHIR.Utils).IsValidResourceId(pInput.Id) {
Set tStatus = ##class(HS.FHIR.Utils).BadRequest(pInput, .pOutput, "invalid", "Invalid resource id specified: "_pInput.Id)
$$$TRACE("Invalid resource id specified: "_pInput.Id)
Quit
} else {
$$$TRACE("Valid resource id specified: "_pInput.Id)
}

Trace in HS.FHIR.Server.Process at the start inside the "Try", and again here pFHIRRequest.Id prints NOTHING:

$$$TRACE("HS.FHIR.Server.Process.ProcessFHIRRequest: pFHIRRequest.Id = "_pFHIRRequest.Id)
 

#FHIR #InterSystems IRIS for Health

Source URL:https://community.intersystems.com/post/fhir-request-resource-id-empty