All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openmrs.module.rulesengine.service.PatientService Maven / Gradle / Ivy

package org.openmrs.module.rulesengine.service;

import org.openmrs.Patient;
import org.openmrs.api.APIException;
import org.openmrs.api.context.Context;

public class PatientService {
    public static Patient getPatientByUuid(String patientUuid) {
        Patient patient = Context.getPatientService().getPatientByUuid(patientUuid);
        if(null == patient){
            throw new APIException("Patient not found");
        }
        return patient;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy