Fixed null bug in viewandmodifysurgical and missing constructor parameter error in PatientXraysAssociation