Stream: implementers
Topic: Implementing Communication Resource with references fully...
Priya Mathew (Jul 13 2019 at 06:23):
Hello!
We're using the Communication resource to communicate between a patient portal and the clinic. I'm in a bind here trying to include the recipient and sender within the Communication resource. These would reference a staff or Patient, and I'm not finding a way to contain both recipient and the sender withing the communication resource. I know contained shouldn't be used in this manner, but the portal we're trying to communicate with doesn't want to query our servers for the resources and would like to get everything included in the communication resource itself.
any advice or pointers on how we should proceed?
Lloyd McKenzie (Jul 13 2019 at 23:36):
You could look at transaction or batch. An alternative would be using a custom operation. FHIR messaging is also a possibility, though it has more overhead.
Priya Mathew (Jul 15 2019 at 14:21):
You could look at transaction or batch. An alternative would be using a custom operation. FHIR messaging is also a possibility, though it has more overhead.
Thanks Llyod. I How could a transaction or a batch be used in this case?The communication resource is the only resource that needs to be posted, the staff and patient -sender/receiver would be resources that the end point uses to match data on. How would I indicate this on these resources in their request in a batch?
Lloyd McKenzie (Jul 15 2019 at 14:53):
You could send conditional create of the recipient and sender organization/Practitioner along with the request to create the Communication. If you're just doing matching, you could use transaction with conditional references (which are essentially queries that determine what resources the match will occur against).
Priya Mathew (Jul 15 2019 at 15:48):
Oh I see! Thank you! Digging into transactions with conditional references- are there are examples out there to share?
Last updated: Apr 12 2022 at 19:14 UTC