Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
07/02/08 19:40:36 (5 months ago)
Author:
bmckown
Message:

Merging trunk to complex-obs [4379][4764]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/branches/complex-obs/src/api/org/openmrs/api/ObsService.java

    r4462 r4785  
    303303        /** 
    304304         * @see {@link org.openmrs.Person#getObservations()} 
    305          * @deprecated use the method on the org.openmrs.Person for getObservations 
     305         * @deprecated use {@link #getObservationsByPerson(Person)} 
    306306         */ 
    307307        @Transactional(readOnly = true) 
     
    310310 
    311311        /** 
    312          * Get all Observations for the given personperson 
     312         * Get all Observations for the given person. 
     313         *  
     314         * Does not return voided observations 
    313315         *  
    314316         * @param who the user to match on 
     
    375377         
    376378        /** 
    377          * @deprecated use {@link #getObservations(List, List, List, org.openmrs.api.ObsService.PERSON_TYPE, Location, String, Integer, Integer, Date, Date, boolean)} 
     379         * @deprecated use {@link #getObservationsByPersonAndConcept(Person, Concept)} 
    378380         */ 
    379381        @Transactional(readOnly = true) 
    380382        @Authorized(OpenmrsConstants.PRIV_VIEW_OBS) 
    381383        public Set<Obs> getObservations(Person who, Concept question, boolean includeVoided); 
     384         
     385        /** 
     386         * Get all nonvoided observations for the given patient with the given 
     387         * concept as the question concept (conceptId) 
     388         *  
     389         * @param who person to match on 
     390         * @param question conceptId to match on 
     391         * @return list of all nonvoided observations matching these criteria 
     392         * @throws APIException 
     393         * @see {@link #getObservations(List, List, List, List, List, List, List, Integer, Integer, Date, Date, boolean)} 
     394         */ 
     395        public List<Obs> getObservationsByPersonAndConcept(Person who, Concept question) throws APIException; 
    382396         
    383397        /**