I am using DCM4CHEE as SCP for DMWL, MPPS, Storage as well as HL7 server.
All is fime most of the time except an occasional error when sending a new HL7 message:
2013-01-24 10:23:57,832 WARN -> (TCPServer-2) [org.dcm4chex.archive.hl7.HL7ServerService] Processing HL7 failed:
org.dcm4chex.archive.hl7.HL7Exception: Patient[id=13001407, issuer=null, name=CETHERINE^NJOKI^null^null] ambiguous
at org.dcm4chex.archive.hl7.ORMService.process(ORMService.java:272)
at org.dcm4chex.archive.hl7.ORMService.process(ORMService.java:213)
at org.dcm4chex.archive.hl7.HL7ServerService.handle(HL7ServerService.java:503)
at org.dcm4cheri.server.ServerImpl.run(ServerImpl.java:288)
at org.dcm4cheri.util.LF_ThreadPool.join(LF_ThreadPool.java:174)
at org.dcm4cheri.server.ServerImpl$1.run(ServerImpl.java:242)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.dcm4chex.archive.exceptions.NonUniquePatientException: Patient[id=13001407, issuer=null, name=CETHERINE^NJOKI^null^null] ambiguous
at org.dcm4chex.archive.ejb.entity.PatientBean.selectPatient(PatientBean.java:655)
at org.dcm4chex.archive.ejb.entity.PatientBean.ejbHomeSelectPatient(PatientBean.java:588)
at sun.reflect.GeneratedMethodAccessor202.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Have tried very many permutations in the patient matching fileds of StoreSCP, HL7 ORM and MPPS Scp services without success. have also tried enabling/disabling suppliment issuer in storescp and mppsscp without success.
While checking on forums, I saw a suggestion that having an issuer for all HL7 messages will probably resolve the issue.
All my messages have no issuer.
Most of the time, there is a previous MPPS message or Study with same PID. This is difficult to completely avoid in my setting.
I would like DCM4CHEE to assume that each study belongs to a totally different patient despite similarities in the PID and other attributes.
How do I achieve this? I see a preprocess xsl file in the hl7 config folder, can it be of help?
Thanks.
Mukoya