mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-03-05 19:09:11 +00:00
fix contact rendering to work properly
This commit is contained in:
parent
7512347c40
commit
1e940dc489
@ -1483,7 +1483,7 @@ public class DataRenderer extends Renderer implements CodeResolver {
|
||||
x.addText(displayContactPoint(contact));
|
||||
break;
|
||||
case PHONE:
|
||||
if (contact.hasPrimitiveValue() && contact.getValue().startsWith("+")) {
|
||||
if (contact.hasValue() && contact.getValue() != null && contact.getValue().startsWith("+")) {
|
||||
x.ah("tel:"+contact.getValue().replace(" ", "")).tx(contact.getValue());
|
||||
} else {
|
||||
x.addText(displayContactPoint(contact));
|
||||
|
Loading…
x
Reference in New Issue
Block a user