Mentions légales du service

Skip to content
Snippets Groups Projects
Commit c9d80085 authored by Alexandre Pocinho's avatar Alexandre Pocinho
Browse files

[LACPASS-29] manage use name

parent 53003730
Branches develop
No related tags found
No related merge requests found
...@@ -53,7 +53,10 @@ public class GazelleRegistryToFhirConverter { ...@@ -53,7 +53,10 @@ public class GazelleRegistryToFhirConverter {
fhirName.addGiven(given); fhirName.addGiven(given);
} }
try { try {
fhirName.setUse(HumanName.NameUse.fromCode(registryName.getUse())); String use = registryName.getUse() != null ? registryName.getUse():"";
if (!use.isBlank()){
fhirName.setUse(HumanName.NameUse.fromCode(registryName.getUse().toLowerCase()));
}
} catch (FHIRException e) { } catch (FHIRException e) {
throw new ConversionException(String.format("Cannot convert PersonName use : %s", registryName.getUse()), e); throw new ConversionException(String.format("Cannot convert PersonName use : %s", registryName.getUse()), e);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment