FHIR Chat · CommunicationRequest: Store key/value pairs in CR to send... · implementers

Stream: implementers

Topic: CommunicationRequest: Store key/value pairs in CR to send...


view this post on Zulip Ivan Galban (Feb 03 2020 at 20:11):

Hi,
We are using the CommunicationRequest resource to request to send emails and we need to store key/value pairs for email template replacements.
What is recommended in this case? Maybe an extension in "CommunicationRequest.payload"?

view this post on Zulip Ivan Galban (Feb 06 2020 at 15:29):

We have created dynamic templates in Sendgrid and we need to provide replacements.
For example, we have the following dynamic template (html):

<p>Hello {{firstName}}</p>

and the data provided should contain:

{"firstName":"Ben"}

For now, we have used Communication(Request) to send fax, sms, emails (without dynamic templates).

Is anyone using this resource to do the same?
Are we making any mistakes with this solution?

view this post on Zulip Ivan Galban (Feb 07 2020 at 16:03):

@Grahame Grieve @Lloyd McKenzie

view this post on Zulip Grahame Grieve (Feb 07 2020 at 21:21):

extra key/value pairs is exactly what an extension is

view this post on Zulip Ivan Galban (Feb 11 2020 at 16:06):

OK. Our team proposes to create an extension (template) at the root of the resource. Our model is as follows:
model

Could you give us a feedback about this? It will be good for us.
Do you think we are going to have something similar in R5?
Thank you very much @Grahame Grieve .

view this post on Zulip Grahame Grieve (Feb 11 2020 at 19:56):

This isn't how extensions work (because of json schema, more than anything else). You actually need to use extensions in the resource, though they can follow that logical structure

view this post on Zulip Ivan Galban (Feb 11 2020 at 21:02):

Yes, I understand what you mean. But we are using Aidbox and we can easily define first class extensions :wink: .
We would like to know about the logical structure, field names, cardinalities and, if you think this is something to consider in R5 @Grahame Grieve ?

view this post on Zulip Grahame Grieve (Feb 11 2020 at 21:44):

I can't say anything about R5 in this regard. you could make a proposal and see what the committee says.

view this post on Zulip Grahame Grieve (Feb 11 2020 at 21:44):

but you'd certainly need to explain in depth why this is something you added in the communication itself. A template sounds like a separate configuration item to me


Last updated: Apr 12 2022 at 19:14 UTC