angular.js:13920 TypeError: Cannot read property 'hospital_number' of undefined
at Scope.scope.preSave (uch_find_patient.js:63)
at pathway.js:79
at Function._.each._.forEach (underscore.js:162)
at WizardPathway.finish (pathway.js:77)
at fn (eval at compile (angular.js:14817), <anonymous>:4:542)
at expensiveCheckFn (angular.js:15906)
at callback (angular.js:25885)
at Scope.$eval (angular.js:17682)
at Scope.$apply (angular.js:17782)
at HTMLButtonElement.<anonymous> (angular.js:25890)
To reproduce:
Console error is: