FHIR Chat · ContactPoint Extension · implementers

Stream: implementers

Topic: ContactPoint Extension


view this post on Zulip Josh Haskins (Sep 20 2018 at 16:57):

Hi,
I'm trying to figure out how to add a phone extension to a ContactPoint within a FHIR message. I found this extension, https://hl7.org/fhir/2018Jan/extension-contactpoint-extension.html, but I'm unsure of how to code it exactly.

Would it be like this?

"telecom": [
{
"system": "phone",
"value": "(03) 5555 6473",
"use": "work",
"rank": 1,
"extension": [{"url":"http://hl7.org/fhir/StructureDefinition/contactpoint-extension",
"valueString":123}],
},
{
"system": "phone",
"value": "(03) 3410 5613",
"use": "mobile",
"rank": 2
}
]

Thank you

view this post on Zulip Lloyd McKenzie (Sep 20 2018 at 17:17):

Generally, the expectation is that the extension will be included as part of the value. Extension is really intended for when you want to break the parts of a phone number into its constituent pieces for easy validation, automated dialing, consistent rendering, etc. (And even then, best practice is to still send the value element with a rendered version of everything. That said, that looks mostly correct. The '123' needs to be surrounded by quotes.

view this post on Zulip Lloyd McKenzie (Sep 20 2018 at 17:19):

Also, per HL7's rules for asking questions, please don't raise something here and on Stack Overflow simultaneously.

view this post on Zulip Josh Haskins (Sep 20 2018 at 17:21):

Thanks Lloyd. I appreciate it.

For the future I will make sure I don't double post like that. Sorry for that.

view this post on Zulip Lloyd McKenzie (Sep 20 2018 at 17:26):

No worries. Welcome to the community :)


Last updated: Apr 12 2022 at 19:14 UTC