Skip to content

Commit

Permalink
Sukreet | SHR-1514 | Changed Primary Identified type.
Browse files Browse the repository at this point in the history
  • Loading branch information
sukreet authored and mddubey committed Sep 3, 2018
1 parent da0b893 commit 1942751
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ public class MRSProperties {
public static final String GLOBAL_PROPERTY_SHR_SYSTEM_USER_TAG = "shr.system.user";
public static final String GLOBAL_PROPERTY_SHR_CATEGORY_EVENT = "shr.system.shrCategoryForEncounterEvents";

public static final String GLOBAL_PROPERTY_EMR_PRIMARY_IDENTIFIER_TYPE = "emr.primaryIdentifierType";
public static final String GLOBAL_PROPERTY_DEFAULT_IDENTIFIER_TYPE_ID = "shr.defaultPatientIdentifierSourceId";
public static final String GLOBAL_PROPERTY_EMR_PRIMARY_IDENTIFIER_TYPE = "bahmni.primaryIdentifierType";
public static final String GLOBAL_PROPERTY_DEFAULT_IDENTIFIER_SOURCE_ID = "shr.defaultPatientIdentifierSourceId";
public static final String GLOBAL_PROPERTY_FIELD_WORKER_ROLE_NAME = "user.fieldWorkerRoleName";

public static final String BAHMNI_DRUG_ORDER_ADDITIONAL_INSTRCTIONS_KEY = "additionalInstructions";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ private PatientIdentifier generateIdentifier() {
}

private IdentifierSource getIdentifierSource(IdentifierSourceService identifierSourceService, PatientIdentifierType identifierType) {
String defaultPatientIdSourceId = globalPropertyLookUpService.getGlobalPropertyValue(MRSProperties.GLOBAL_PROPERTY_DEFAULT_IDENTIFIER_TYPE_ID);
String defaultPatientIdSourceId = globalPropertyLookUpService.getGlobalPropertyValue(MRSProperties.GLOBAL_PROPERTY_DEFAULT_IDENTIFIER_SOURCE_ID);
if (defaultPatientIdSourceId != null)
return identifierSourceService.getIdentifierSource(Integer.parseInt(defaultPatientIdSourceId));
else {
Expand Down

0 comments on commit 1942751

Please sign in to comment.