nmrs-nigeria / openmrs-module-nigeriaemr

NMRS NDR Extration Module for NigeriaMRS
1 stars 15 forks source link

PrescribedRegimenTypeCode "OI" not recognized. This should be changed to NONART #213

Closed brightoibe closed 3 years ago

brightoibe commented 3 years ago

All OIs exported on the XML inside the "Regimen" tag with PrescribedRegimenTypeCode of OI is being flagged by the NDR plugin.

brightoibe commented 3 years ago

try { //set type code if (obs != null && obs.getObsGroup().getConcept().getConceptId() == OI_regimen_Concept_set) { regimenType.setPrescribedRegimenTypeCode("OI"); } else if (obs != null && obs.getObsGroup().getConcept().getConceptId() == TB_regimen_Concept_set) { regimenType.setPrescribedRegimenTypeCode("TB"); } } catch (Exception ex) { LoggerUtils.write(PharmacyDictionary.class.getName(), "Error on OI_regimen_Concept_set: " + ex.getMessage(), LogFormat.FATAL, LogLevel.live); }

I think this can be fixed from line 461 t0 470 of PharmacyDictionary.java class ( https://github.com/nmrs-nigeria/openmrs-module-nigeriaemr/blob/master/omod/src/main/java/org/openmrs/module/nigeriaemr/ndrfactory/PharmacyDictionary.java )

wandechris commented 3 years ago

Hi @brightoibe what version of export plugin was this, please provide the sample file that failed?

brightoibe commented 3 years ago

33550_Ke1y8vsmeC4_RIV20700500_260121.zip

wandechris commented 3 years ago

@wonderfulguru1 please take a look at this

brightoibe commented 3 years ago

This is the beta version of 1.6.3

wonderfulguru1 commented 3 years ago

@brightoibe I just validate the file with XSD 1.6.3 and it went through I discover one regimen encounter didn't have prescribed regimen tag so it got flagged

brightoibe commented 3 years ago

Please can you validate against XSD 1.6.2 because that is the current XSD used by the plugin version 1.6.2