@@ -89,8 +89,7 @@ public List<Obs> getAllObs(String programName, Date fromDate, Date toDate, Patie
8989
9090 @ Override
9191 public List <Obs > getPhysicalExamination (Visit visit ) {
92- final String [] formNames = new String []{"Discharge Summary" , "Death Note" , "Delivery Note" , "Opioid Substitution Therapy - Intake" , "Opportunistic Infection" ,
93- "Safe Abortion" , "ECG Notes" , "Operative Notes" , "USG Notes" , "Procedure Notes" , "Triage Reference" , "History and Examination" , "Visit Diagnoses" };
92+ final String [] formNames = Config .Forms_To_Ignore_In_Physical_Examination .getValue ().split ("\\ s*,\\ s*" );
9493 List <Obs > physicalExaminationObsMap = encounterDao .GetAllObsForVisit (visit ,Config .CONSULTATION .getValue (),null )
9594 .stream ().filter (o -> o .getValueCoded () == null && o .getObsGroup () == null
9695 && !Arrays .asList (formNames ).contains (o .getConcept ().getName ().getName ()) )
@@ -127,8 +126,7 @@ public List<Order> getOrdersForProgram(String programName, Date fromDate, Date t
127126
128127 @ Override
129128 public List <Obs > getPhysicalExaminationForProgram (String programName , Date fromDate , Date toDate , Patient patient ) {
130- final String [] formNames = new String []{"Discharge Summary" , "Death Note" , "Delivery Note" , "Opioid Substitution Therapy - Intake" , "Opportunistic Infection" ,
131- "Safe Abortion" , "ECG Notes" , "Operative Notes" , "USG Notes" , "Procedure Notes" , "Triage Reference" , "History and Examination" , "Visit Diagnoses" };
129+ final String [] formNames = Config .Forms_To_Ignore_In_Physical_Examination .getValue ().split ("\\ s*,\\ s*" );
132130 List <Obs > physicalExaminationObsMap = new ArrayList <>();
133131 List <Obs > obs = getAllObs (programName , fromDate , toDate , patient );
134132 for (Obs o : obs ) {
0 commit comments