Detecting spatial location and rotation (pitch, roll and yaw) of an implantable programmable valve device having a direction of flow of fluid therethrough. A permanent-magnet rotor disk associated with the valve has magnets arranged in a ring. A single position within the ring represents a moveable reference marker position. Also included in the valve is a first fixed, stationary, non-moveable magnet disposed a predetermined distance relative to the moveable reference marker position. A magnetoresistive sensor array produces the as magnetic field pattern including a moveable reference marker corresponding to the moveable reference marker position in the ring and a first fixed reference marker corresponding to the first fixed, stationary, non-moveable magnet. An indicator device determines spatial location based only on the moveable reference marker and yaw based on the moveable reference marker relative to the first fixed reference marker.