Write a function to parse and validate complex, nested JSON payloads representing patient medical histories.