Context invocation in PatientService