Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 8d1a04c1 authored by Franck Desaize's avatar Franck Desaize
Browse files

Change to feed patient registry

parent b8dbca8d
No related branches found
No related tags found
2 merge requests!5Release/2.0.0,!4Pixm
Pipeline #283759 failed
......@@ -87,14 +87,14 @@ public class BundleToPatientRegistryConverter {
EntityIdentifier entityIdentifier = new EntityIdentifier();
if (id.hasSystem()) {
entityIdentifier.setSystemIdentifier(id.getSystem());
}
else {
throw new InvalidRequestException("Cannot create Patient without any Identifier");
String systemID = id.getSystem();
systemID = systemID.replace("urn:oid:", "");
entityIdentifier.setSystemIdentifier(systemID);
entityIdentifier.setType("ISO");
}
if (id.hasValue()) {
entityIdentifier.setSystemName(id.getValue());
entityIdentifier.setValue(id.getValue());
}
else {
throw new InvalidRequestException("Cannot create Patient without any Identifier");
......
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