Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
wandechris committed Nov 16, 2020
1 parent f1bff78 commit da36d38
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ public RegimenType createRegimenType(Patient patient, Date visitDate, List<Obs>
ndrCode = getRegimenMapValue(valueCoded);
codedSimpleType = new CodedSimpleType();
codedSimpleType.setCode(ndrCode);
codedSimpleType.setCodeDescTxt(valueObs.getValueCoded().getName().getName());
// codedSimpleType.setCodeDescTxt(valueObs.getValueCoded().getName().getName());
codedSimpleType.setCodeDescTxt(getRegimenCodeDescTextMapValue(valueCoded));
regimenType.setPrescribedRegimen(codedSimpleType);
}
regimenType.setPrescribedRegimenDispensedDate(utils.getXmlDate(visitDate));//PrescribedRegimenDispensedDate
Expand Down Expand Up @@ -432,8 +433,8 @@ private RegimenType createOIType(Patient pts, Encounter enc, List<Obs> OIDrugObs
try {
cst = new CodedSimpleType();
cst.setCode(getRegimenMapValue(obs.getValueCoded().getConceptId()));
cst.setCodeDescTxt(obs.getValueCoded().getName().getName());
// cst.setCodeDescTxt(getRegimenCodeDescTextMapValue(obs.getValueCoded().getConceptId()));
// cst.setCodeDescTxt(obs.getValueCoded().getName().getName());
cst.setCodeDescTxt(getRegimenCodeDescTextMapValue(obs.getValueCoded().getConceptId()));
regimenType.setPrescribedRegimen(cst);
} catch (Exception ex) {
LoggerUtils.write(PharmacyDictionary.class.getName(), "Error on OI_Drug_Concept_Id: " + ex.getMessage(), LogFormat.FATAL, LogLevel.live);
Expand All @@ -444,8 +445,8 @@ private RegimenType createOIType(Patient pts, Encounter enc, List<Obs> OIDrugObs
try {
cst = new CodedSimpleType();
cst.setCode(getRegimenMapValue(obs.getValueCoded().getConceptId()));
cst.setCodeDescTxt(obs.getValueCoded().getName().getName());
// cst.setCodeDescTxt(getRegimenCodeDescTextMapValue(obs.getValueCoded().getConceptId()));
// cst.setCodeDescTxt(obs.getValueCoded().getName().getName());
cst.setCodeDescTxt(getRegimenCodeDescTextMapValue(obs.getValueCoded().getConceptId()));
regimenType.setPrescribedRegimen(cst);
} catch (Exception ex) {
LoggerUtils.write(PharmacyDictionary.class.getName(), "Error on OI_Drug_Concept_Id: " + ex.getMessage(), LogFormat.FATAL, LogLevel.live);
Expand All @@ -456,7 +457,7 @@ private RegimenType createOIType(Patient pts, Encounter enc, List<Obs> OIDrugObs
try {
//set type code
if (obs != null && obs.getObsGroup().getConcept().getConceptId() == OI_regimen_Concept_set) {
regimenType.setPrescribedRegimenTypeCode("NONART");
regimenType.setPrescribedRegimenTypeCode("OI");
} else if (obs != null && obs.getObsGroup().getConcept().getConceptId() == TB_regimen_Concept_set) {
regimenType.setPrescribedRegimenTypeCode("TB");
}
Expand Down

0 comments on commit da36d38

Please sign in to comment.