CDA API Guide

cda.demographic.phone

This function adds telephone information to your CDA document:


add() [top]

Usage: cda.demographic.phone.add{target=<{PARENT}>, phone=<PHONE>, use=<TYPE>}

Add a new telecom XML element to your document. Telecom data applies to many RIM classes (usually the same ones that include addresses).

Returns: A parsed tree representing the populated XML element

Required parameters:

  • target: The parent tag under which you wish to add the new element

Optional parameters:

  • phone: The actual phone number
  • use: The type of phone number (i.e. HP for home phone number)

Example:

cda.demographic.phone.add{target={PARENT}, phone='(816)276-6909', use=cda.code.address.Home}

Example Result:
<telecom use="HP" value="tel:(816)276-6909"></telecom>

Leave A Comment?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.