Stream: implementers
Topic: Parameters resource with a reference parameter
John Moehrke (Nov 15 2017 at 14:50):
When using the Parameters resource, and the parameter one is passing is a Reference to a Resource... does one use <valueReference> or <resource> element?
e.g.
<parameter>
<name value="targetId"/>
<valueReference value="http://xyz-server/xxx/Patient/7536642">
</valueReference>
</parameter>
Lloyd McKenzie (Nov 15 2017 at 14:53):
valueReference. If you use Resource, then you actually embed the full resource content.
John Moehrke (Nov 15 2017 at 14:58):
Lloyd, that seems to me a circular description. I am using a Resource... "If you use Resource, ...". So I am not sure what advice you are giving. It seems to me the <resource> element is to be used when one wants to embed (containment) the copy of the Resource. Is this correct?
John Moehrke (Nov 15 2017 at 15:08):
or was my misunderstanding the way you said it... "If you use .resource, then you actually embed the full resource content"?
Lloyd McKenzie (Nov 15 2017 at 17:19):
Right. .resource
embeds the full content. .valueReference
just gives the URL pointer
Last updated: Apr 12 2022 at 19:14 UTC