Riddhish
Riddhish

Reputation: 373

How to identify unique entries in ccda file?

Basically, if user uploads same c-cda document again or other documents containing same entries of like medications, vitals, allergies, surgeries, etc than I want to make sure they do not get duplicated in database and want to skip those from inserting again.

Upvotes: 2

Views: 520

Answers (1)

Each entry inside an HL7 CDA could have an id attribute, which definition form HL7 V3 RIM is: 3.1.1.3 Act.id :: SET (0..N) Definition:A unique identifier for the Act.

Use it in order to uniquely identify you entries, and avoid duplicates.

This element is not mandatory, but if you are implementing C-CDA, this template for substance administration specifies that this element is mandatory, so you should ask document sender to inform it. Here is a substance administration example form C-CDA:

<substanceAdministration classCode="SBADM" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.16"/>
<id root="cdbd33f0-6cde-11db-9fe1-0800200c9a66"/>
<text>
<reference value="#med1/>
Proventil 0.09 MG/ACTUAT inhalant solution, 2 puffs QID PRN wheezing
</text>
<statusCode code="completed"/>
<effectiveTime xsi:type="IVL_TS">
<low value="20110301"/>
<high value="20120301"/>
</effectiveTime>
<effectiveTime xsi:type="PIVL_TS" institutionSpecified="true" operator="A">
<period value="6" unit="h"/>
</effectiveTime>
...

Martí [email protected]

Upvotes: 2

Related Questions