Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AKTIN
dwh-import
Commits
b5696287
Commit
b5696287
authored
May 18, 2018
by
R.W.Majeed
Browse files
fixed NPE for CDAs with new encounters
parent
fa97f30e
Changes
1
Hide whitespace changes
Inline
Side-by-side
cda-import/src/main/java/org/aktin/cda/etl/CDAImporter.java
View file @
b5696287
...
@@ -142,7 +142,7 @@ public class CDAImporter extends AbstractCDAImporter implements AutoCloseable{
...
@@ -142,7 +142,7 @@ public class CDAImporter extends AbstractCDAImporter implements AutoCloseable{
String
patId
=
getAnonymizer
().
calculatePatientPseudonym
(
patientId
[
0
],
patientId
[
1
]);
String
patId
=
getAnonymizer
().
calculatePatientPseudonym
(
patientId
[
0
],
patientId
[
1
]);
log
.
info
(
"Using patid="
+
patId
+
", encid="
+
encId
+
", docid="
+
documentId
);
log
.
info
(
"Using patid="
+
patId
+
", encid="
+
encId
+
", docid="
+
documentId
);
I2b2Visit
visit
=
visitStore
.
findVisit
(
encId
);
I2b2Visit
visit
=
visitStore
.
findVisit
(
encId
);
if
(
false
==
patId
.
equals
(
visit
.
getPatientId
())
)
{
if
(
visit
!=
null
&&
false
==
patId
.
equals
(
visit
.
getPatientId
())
)
{
log
.
warning
(
"Encounter "
+
encId
+
" assigned different patient "
+
patId
);
log
.
warning
(
"Encounter "
+
encId
+
" assigned different patient "
+
patId
);
// delete all facts for the encounter
// delete all facts for the encounter
try
{
try
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment