FHIR Chat · Duplicate setId+versionNumber · CDA

Stream: CDA

Topic: Duplicate setId+versionNumber


view this post on Zulip Artur Łysik (Feb 15 2021 at 13:04):

I am a developer of Health Information Systems. Recently I encountered several HL7 CDA referrals which had the same setId and versionNumber. I was always convinced that it's incorrect situation.

May I ask for your advice? Is it correct if two HL7 CDA documents exist with identifiers like these below? They are not real life examples, I changed them because of privacy of medical records, however they are a good example of the problem.

In short: I have found CDA documents with identical setId+versionNumber pair of identifiers.

First document:
<id displayable="false" extension="ABC123"
root="2.16.840.1.113883.3.4424.2.7.0.4.1"/>
<setId extension="1234" root="2.16.840.1.113883.3.4424.2.7.0.4.2"/>
<versionNumber value="1"/>

Second document:
<id displayable="false" extension="XYZ987"
root="2.16.840.1.113883.3.4424.2.7.0.4.1"/>
<setId extension="1234" root="2.16.840.1.113883.3.4424.2.7.0.4.2"/>
<versionNumber value="1"/>

Best Regards,
Artur

view this post on Zulip René Spronk (Feb 15 2021 at 14:19):

Version management in CDA assumes that all versions are known/available to the party that authors a new version in a set. But an authoring system may not have access to the latest version, or have persisted the latest VersionNumber. This can't always be avoided, even if systems were to act in good faith.

view this post on Zulip Artur Łysik (Feb 15 2021 at 15:02):

René Spronk said:

Version management in CDA assumes that all versions are known/available to the party that authors a new version in a set. But an authoring system may not have access to the latest version, or have persisted the latest VersionNumber. This can't always be avoided, even if systems were to act in good faith.

Good point. However, both documents come from the central system. Every e-referral issued in our country should be uploaded to this system. So all versions are known to this central system. Still it allows to duplicate setId+versionNumber. I think it should be validated during upload and duplicates should be rejected.
Thank you for your response!
Artur


Last updated: Apr 12 2022 at 19:14 UTC