@Test(expected = Exception.class) public void setupHivUniqueIdentifierSource_shouldFailIfAlreadySetup() throws Exception { service.setupHivUniqueIdentifierSource("00517"); service.setupHivUniqueIdentifierSource("00517"); }
@Override public void setupHivUniqueIdentifierSource(String startFrom) { PatientIdentifierType idType = MetadataUtils.existing(PatientIdentifierType.class, HivMetadata._PatientIdentifierType.UNIQUE_PATIENT_NUMBER); setupIdentifierSource(idType, startFrom, HIV_UNIQUE_PATIENT_NUMBER_NAME, "0123456789", null); }
KenyaEmrServiceImpl extends BaseOpenmrsService implements KenyaEmrService { @Override public void setupHivUniqueIdentifierSource(String startFrom) { PatientIdentifierType idType = MetadataUtils.existing(PatientIdentifierType.class, HivMetadata._PatientIdentifierType.UNIQUE_PATIENT_NUMBER); setupIdentifierSource(idType, startFrom, HIV_UNIQUE_PATIENT_NUMBER_NAME, "0123456789", null); } }
KenyaEmrServiceImpl extends BaseOpenmrsService implements KenyaEmrService { @Override public void setupHivUniqueIdentifierSource(String startFrom) { PatientIdentifierType idType = MetadataUtils.existing(PatientIdentifierType.class, HivMetadata._PatientIdentifierType.UNIQUE_PATIENT_NUMBER); setupIdentifierSource(idType, startFrom, HIV_UNIQUE_PATIENT_NUMBER_NAME, "0123456789", null); }  }
KenyaEmrServiceImpl extends BaseOpenmrsService implements KenyaEmrService { @Override public void setupHivUniqueIdentifierSource(String startFrom) { PatientIdentifierType idType = MetadataUtils.existing(PatientIdentifierType.class, HivMetadata._PatientIdentifierType.UNIQUE_PATIENT_NUMBER); setupIdentifierSource(idType, startFrom, HIV_UNIQUE_PATIENT_NUMBER_NAME, "0123456789", null); }  void setKenyaEmrDAO(KenyaEmrDAO dao); @Override boolean isSetupRequired(); @Override void setDefaultLocation(Location location); @Override Location getDefaultLocation(); @Override String getDefaultLocationMflCode(); @Override Location getLocationByMflCode(String mflCode); @Override String getNextHivUniquePatientNumber(String comment); @Override List<Visit> getVisitsByPatientAndDay(Patient patient, Date date); @Override void setupMrnIdentifierSource(String startFrom); @Override void setupHivUniqueIdentifierSource(String startFrom); @Override List<Object> executeSqlQuery(String query, Map<String, Object> substitutions); @Override List<Object> executeHqlQuery(String query, Map<String, Object> substitutions); }
KenyaEmrServiceImpl extends BaseOpenmrsService implements KenyaEmrService { @Override public void setupHivUniqueIdentifierSource(String startFrom) { PatientIdentifierType idType = MetadataUtils.existing(PatientIdentifierType.class, HivMetadata._PatientIdentifierType.UNIQUE_PATIENT_NUMBER); setupIdentifierSource(idType, startFrom, HIV_UNIQUE_PATIENT_NUMBER_NAME, "0123456789", null); }  void setKenyaEmrDAO(KenyaEmrDAO dao); @Override boolean isSetupRequired(); @Override void setDefaultLocation(Location location); @Override Location getDefaultLocation(); @Override String getDefaultLocationMflCode(); @Override Location getLocationByMflCode(String mflCode); @Override String getNextHivUniquePatientNumber(String comment); @Override List<Visit> getVisitsByPatientAndDay(Patient patient, Date date); @Override void setupMrnIdentifierSource(String startFrom); @Override void setupHivUniqueIdentifierSource(String startFrom); @Override List<Object> executeSqlQuery(String query, Map<String, Object> substitutions); @Override List<Object> executeHqlQuery(String query, Map<String, Object> substitutions);  }