public PatientArray nptLookup( string SSN, string lastName, string firstName, string middleName, string nameSuffix, string DOB, string gender) { PatientArray result = new PatientArray(); if (String.IsNullOrEmpty(SSN)) { result.fault = new FaultTO("Must supply SSN"); } else if (!SocSecNum.isValid(SSN)) { result.fault = new FaultTO("Invalid SSN"); } if (result.fault != null) { return result; } try { PatientApi api = new PatientApi(); Patient[] patients = api.nptMatch(SSN); result = new PatientArray(patients); } catch (Exception exc) { result.fault = new FaultTO(exc); } return result; }