Stream: Canadian HealthcareService Directory
Topic: Should ?includes always use relative URLs?
Tim Berezny (Sep 25 2020 at 13:53):
if I "GET Healthcareservice/id=123&_include=HealthcareService:organization
In the bundle that returns, in my HealthcareService resource should the reference to an Organization object always be RELATIVE (i.e. "Organization/876") because it's included in the bundle, or can/should it be an absolute reference to the Organization resource (with the baseUrl in the path)?
Note: This is for broad multi-system web interoperability.
Lloyd McKenzie (Sep 25 2020 at 14:41):
References can always be absolute. They're allowed to be relative if referencing and referenced resource are on the same endpoint. Relative is a bit easier in terms of signatures if you're porting content across servers. (It's also shorter)
Last updated: Apr 12 2022 at 19:14 UTC