Stream: implementers
Topic: CommunicationRequest email subject
Brian Kaney (Jun 30 2021 at 13:08):
I would like to model a CommunicationRequest to send an email. How do I specify the email subject? (e.g. like the subject line in your email client, not in the FHIR sense of Patient or Group in CommunicationRequest)..
Lloyd McKenzie (Jun 30 2021 at 14:34):
Communication.topic
Brian Kaney (Jun 30 2021 at 15:48):
Thanks @Lloyd McKenzie -- But that is the Communication. I want to specify what the topic would be in the corresponding CommunicationRequest. I am thinking about using CommunicationRequest.reasonCode.text
for this.
Lloyd McKenzie (Jun 30 2021 at 15:52):
CommunicationRequest wouldn't be used in an email-simulator. Each email (even one requesting data) would just be a Communication.
Brian Kaney (Jun 30 2021 at 15:55):
I don't follow. I have an ActivityDefinition to define sending an email, the ActivityDefinition.kind
is CommunicationRequest
(that will be created result of $apply
).
Some other system will actually send the email based on the CommunicationRequest.
How do I specify the subject of the email message in the CommunicationRequest? I am not intending on creating a Communication
resource.
Brian Kaney (Jun 30 2021 at 16:04):
For context, I am using CPG, so maybe this is a question for @Bryn Rhodes ?
Bryn Rhodes (Jun 30 2021 at 18:17):
In this example, a dynamicValue
element is used to set the subject
element of the CommunicationRequest to the result of evaluating the Patient
expression in an associated CQL library: http://hl7.org/fhir/uv/cpg/ActivityDefinition-cpg-communicationrequest-activitydefinition.xml.html
Bryn Rhodes (Jun 30 2021 at 18:18):
There are several dynamicValue elements required in the ActivityDefinition because CommunicationRequest has fields that aren't statically modeled in ActivityDefinition.
Brian Kaney (Jun 30 2021 at 18:56):
Right, I am using several dynamicValue
s for the AD -$apply-> CR. But what I need to specify the "email subject line" in the CR (so when the email gets sent, it has a subject line). It doesn't seem obvious where to do this in the CR.
Bryn Rhodes (Jun 30 2021 at 20:49):
Oh! I was thinking of subject as patient, sorry. Yes, there's not anywhere obvious, that's true. Sounds like an extension for "topic", or you could overload "category" for that purpose.
Brian Kaney (Jun 30 2021 at 21:53):
Okay, I was thinking of overloading the reason (e.g. CommunicationRequest.reasonCode.text
), but an extension "topic" on CR would probably be better. Thanks!
Last updated: Apr 12 2022 at 19:14 UTC