Merge pull request #897 from ahdis/oe_patientrender_np

Fix NP for PatientRenderer #896
This commit is contained in:
Grahame Grieve 2022-09-20 05:17:51 -04:00 committed by GitHub
commit 25f92bef1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

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);