Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
07/30/08 15:52:50 (5 months ago)
Author:
bwolfe
Message:

Adding boolean exactMatch option to PatientService.getPatients

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/trunk/src/api/org/openmrs/api/PatientService.java

    r4559 r5094  
    138138         * @param name (optional) this is a slight break from the norm, patients with a  
    139139         *              partial match on this name will be returned 
    140          * @param (optional)identifier only patients with a matching identifier are returned 
    141          * @param (optional)identifierTypes the PatientIdentifierTypes to restrict to 
     140         * @param identifier (optional) only patients with a matching identifier are returned 
     141         * @param identifierTypes (optional) the PatientIdentifierTypes to restrict to 
     142         * @param matchIdentifierExactly (required) if true, then the given <code>identifier</code> 
     143         *              must equal the id in the database.  if false, then the identifier is 'searched' for 
     144         *              by using a regular expression  
    142145         * @return patients that matched the given criteria (and are not voided) 
    143146         * @throws APIException 
     147         */ 
     148        @Transactional(readOnly = true) 
     149        @Authorized( { OpenmrsConstants.PRIV_VIEW_PATIENTS }) 
     150        public List<Patient> getPatients(String name, String identifier, List<PatientIdentifierType> identifierTypes, boolean matchIdentifierExactly) 
     151                throws APIException; 
     152         
     153        /** 
     154         * @deprecated replaced by {@link #getPatients(String, String, List, boolean)} 
    144155         */ 
    145156        @Transactional(readOnly = true)