Merge remote-tracking branch 'origin/master'

This commit is contained in:
Grahame Grieve 2022-09-20 05:20:09 -04:00
commit 5bbf98fe27
2 changed files with 4 additions and 1 deletions

View File

@ -246,7 +246,7 @@ public class ConceptMapRenderer extends TerminologyRenderer {
td.addText(ccl.getCode());
else
td.addText(grp.getSource()+" / "+ccl.getCode());
display = getDisplayForConcept(systemFromCanonical(grp.getSource()), versionFromCanonical(grp.getSource()), ccl.getCode());
display = ccl.hasDisplay() ? ccl.getDisplay() : getDisplayForConcept(systemFromCanonical(grp.getSource()), versionFromCanonical(grp.getSource()), ccl.getCode());
tr.td().style("border-left-width: 0px").tx(display == null ? "" : display);
tr.td().colspan("4").style("background-color: #efefef").tx("(not mapped)");

View File

@ -149,6 +149,9 @@ public class PatientRenderer extends ResourceRenderer {
if (newUse == null) {
return true;
}
if (oldUse == null) {
return existsInList(newUse, NameUse.OFFICIAL, NameUse.USUAL);
}
switch (oldUse) {
case ANONYMOUS: return existsInList(newUse, NameUse.OFFICIAL, NameUse.USUAL);
case MAIDEN: return existsInList(newUse, NameUse.OFFICIAL, NameUse.USUAL);