Closed brightoibe closed 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 )
Hi @brightoibe what version of export plugin was this, please provide the sample file that failed?
@wonderfulguru1 please take a look at this
This is the beta version of 1.6.3
@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
Please can you validate against XSD 1.6.2 because that is the current XSD used by the plugin version 1.6.2
All OIs exported on the XML inside the "Regimen" tag with PrescribedRegimenTypeCode of OI is being flagged by the NDR plugin.