Drop id from patient attribute checking
Convert case spec to use factories
Extract repeat attribute constants into support file