Skip to content

Commit 347a42e

Browse files
BAH-2152 | Created configuration for hardcoded values
1 parent 42a9a60 commit 347a42e

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
package org.bahmni.module.hip;
2+
3+
public enum Config {
4+
5+
6+
PATIENT_DOCUMENTS_PATH("/home/bahmni/document_images/"),
7+
ABHA_ADDRESS("ABHA Address"),
8+
LOCATION("Bahmni Clinics"),
9+
PHONE_NUMBER("phoneNumber"),
10+
11+
//encounterType
12+
CONSULTATION("Consultation"),
13+
PATIENT_DOCUMENT("Patient Document"),
14+
RADIOLOGY_TYPE( "RADIOLOGY"),
15+
ORDER_TYPE("Order"),
16+
17+
//concepts
18+
DOCUMENT_TYPE("Document"),
19+
RADIOLOGY_REPORT("Radiology Report"),
20+
CHIEF_COMPLAINT( "Chief Complaint"),
21+
PROCEDURE_NOTES( "Procedure Notes"),
22+
DISCHARGE_SUMMARY( "Discharge Summary"),
23+
CODED_DIAGNOSIS( "Coded Diagnosis"),
24+
NON_CODED_DIAGNOSIS( "Non-coded Diagnosis"),
25+
LAB_REPORT( "LAB_REPORT"),
26+
RADIOLOGY_ORDER( "Radiology Order"),
27+
LAB_ORDER( "Lab Order"),
28+
29+
30+
PROP_HFR_ID("bahmniHip.healthFacilityRegistryId"),
31+
PROP_HFR_NAME( "bahmniHip.healthFacilityName"),
32+
PROP_HFR_SYSTEM( "bahmniHip.healthFacilitySystem"),
33+
PROP_HFR_URL( "bahmniHip.healthFacilityUrl");
34+
35+
36+
private final String value;
37+
38+
39+
Config(String val) {
40+
value = val;
41+
}
42+
43+
public String getValue() {
44+
return System.getenv().getOrDefault(name(),this.value);
45+
}
46+
47+
}

0 commit comments

Comments
 (0)