You can enforce this kind of rule using a CHECK constraint rather than a uniqueness constraint. For example:
ALTER TABLE YourTable
ADD CONSTRAINT primary_secondary_parents_must_be_unique
CHECK (NOT EXISTS
(SELECT 1 FROM YourTable WHERE Type <> 'Other'
GROUP BY ChildId, Type HAVING COUNT(*)>1))...