better code organization & implemented extract health profile by name with XPath