Content properties extracted from sample XML
When working with content properties in the Tenant Management Console, you can supply sample well-formed XML and have HCP extract content properties from that XML. You can then select which of those properties you want to add to a content class.
HCP extracts only content properties for XPath expressions that follow a straight path from the root element. These conventions apply to the content property definitions:
- The XPath expression always starts from the root element.
- The name of a content property that extracts an element value is the name of the element preceded by the name of the parent element.
- The name of a content property that extracts an attribute value is the name of the attribute preceded by the name of the element the attribute applies to.
- Content property names that would exceed 25 characters in length are truncated to 25 characters, starting from the beginning.
- The definitions do not include formats.
- The definitions are listed alphabetically by XPath expression.
When adding extracted content properties to a content class, you can change any parts of their definitions.
The table below shows the definitions of the content properties HCP extracts from the sample custom metadata XML.
XPath expression | Name | Data type | Multivalued |
/dicom_image/doctor/address/address1 | addressAddress1 | String | No |
/dicom_image/doctor/address/address2 | addressAddress2 | String | No |
/dicom_image/doctor/address/city | addressCity | String | No |
/dicom_image/doctor/address/state | addressState | String | No |
/dicom_image/doctor/address/zip | addressZip | Integer | No |
/dicom_image/doctor/name | doctorName | String | No |
/dicom_image/doctor/office | doctorOffice | String | No |
/dicom_image/doctor/specialties/specialty | specialtiesSpecialty | String | Yes |
/dicom_image/doctor/specialties/specialty/@primary | specialtyPrimary | Boolean | No |
/dicom_image/followup_needed | icom_imageFollowup_needed | Boolean | No |
/dicom_image/image/@type | imageType | String | No |
/dicom_image/image/date | imageDate | String | No |
/dicom_image/image/technician | imageTechnician | String | No |
/dicom_image/patient/address/address1 | addressAddress1 | String | No |
/dicom_image/patient/address/address2 | addressAddress2 | String | No |
/dicom_image/patient/address/city | addressCity | String | No |
/dicom_image/patient/address/state | addressState | String | No |
/dicom_image/patient/address/zip | addressZip | Integer | No |
/dicom_image/patient/id | patientId | Integer | No |
/dicom_image/patient/name | patientName | String | No |