FHIR Chat · USCPHOCP-02 (SINGLE PATIENT API) · inferno

Stream: inferno

Topic: USCPHOCP-02 (SINGLE PATIENT API)


view this post on Zulip Sagar Sarvankar (Jan 22 2022 at 14:04):

Hello @Yunwei Wang ,

This is regarding Pediatric Head Occipital-Frontal Circumference Percentile Tests (USCPHOCP-02). When it tries to POST a URL, it does not encode plus (+) in the URL and hence our FHIR server throws error. The moment I replace + with %2B it works fine. Please see attached screenshot. FirstScreen.png

As you can see in the popup PopupDetails.png , the earlier URL it encodes + correctly, but in the next URL it does not do that.

Could you please help us on this?

Regards,
Sagar

view this post on Zulip Yunwei Wang (Jan 24 2022 at 15:12):

Hello @Sagar Sarvankar Sorry for the late reply. I was at HL7 WGM last week. I did some investigation this morning. My current finding is that when Inferno read the 2nd page of search result, it uses the url provided in Bundle.link. Can you take a look at the Bundle.link.url in the first page of search result. Does the next link have "+" sign at the same place?

view this post on Zulip Sagar Sarvankar (Jan 24 2022 at 16:43):

Hello @Pengyu Wang ,
Thank you for reply and not a problem for replying late. I hope your WGM went great.

Below is the URL
{
"relation": "next",
"url": "https://fhirserver.justtest.in:9443/fhir-server/api/v4/Observation?_count=10&category=vital-signs&date=gt1940-10-04T00:00:00+00:00&patient=17e77411359-8837d878-ea1e-45b5-bb89-882fdfb2be4b&_page=2"
}

Do you think it has to be html encoded here for "+"?

Thanks,
Sagar

view this post on Zulip Yunwei Wang (Jan 24 2022 at 17:41):

According to FHIR Paging:

The links are opaque to the client, have no dictated structure, and only the server understands them. The client must use the server supplied links in order to traverse the pages.

"The client must use the server supplied links" implies that those links must be resolvable by the server. It does not matter if the"+" must be encoded or not. If server provides a link having "+", then server SHALL "understand" that. (as stated "only the server understands them")

view this post on Zulip Sagar Sarvankar (Jan 25 2022 at 05:10):

Thank you @Yunwei Wang for the explanation, I will look further into this.


Last updated: Apr 12 2022 at 19:14 UTC