How to use node data in content type as hierarchical select
It looks like you need Reference field option limit, or module with similar functionality:

This module allows reference fields of several types to have their widgets' available options limited by the values of other fields in the current entity.
This is best illustrated by examples:
(...)
Example 2: sports and teams
Suppose you want news stories to be marked as being about a sport and a particular team for that sport, perhaps using taxonomy terms for both. To make editing easier, you would probably like want the 'team' dropdown to be limited to just teams for the current news story's sport.
To achieve this with this module, add the 'sport' field to both news story nodes and team taxonomy terms. Hence the team 'Chudley Cannons' would have as its sport taxonomy term 'Quidditch'. (This probably entails taxonomy term reference fields on terms themselves... which was bound to happen with FieldAPI sooner or later.)
Thus, when editing a news story node, selecting 'Quidditch' as the sport will cause the team reference field widget to update to show only teams which also have 'Quidditch' as their sport.

If this module is not exactly what you want, it can be a good start for coding own functionality. At least it solves all AJAX interactions for you, so only part you might need to alter is the actual selection.