@Search
	public List<Patient> search(@RequiredParam(name="family") StringParam theParam) {
		List<Patient> retVal = new ArrayList<Patient>();

		// Loop through the patients looking for matches
		for (Patient next : myPatients.values()) {
			String familyName = next.getNameFirstRep().getFamilyAsSingleString().toLowerCase();
			if (familyName.contains(theParam.getValue().toLowerCase()) == false) {
				continue;
			}
			retVal.add(next);
		}
		
		return retVal;		
	}
@ Search public List < Patient > search ( @ RequiredParam ( name = "family" ) StringParam theParam ) { List < Patient > retVal = new ArrayList < Patient > ( ) ; for ( Patient next : myPatients . values ( ) ) { String familyName = next . getNameFirstRep ( ) . getFamilyAsSingleString ( ) . toLowerCase ( ) ; if ( familyName . contains ( theParam . getValue ( ) . toLowerCase ( ) ) == false ) { continue ; } retVal . add ( next ) ; } return retVal ; }
A search with a parameter