CCDA import and transactions

Hi all
This is a bit of an odd question, but I was doing a CCDA import, and “add as new patient”, and I noticed that this process created a record in the transactions table, of type “referral”, and this shows in the Transactions tab of the patient’s main page. Is this expected behavior? Anyone know why this came to be? Is not causing any issues for me, but is just a bit surprising
Thanks

It could be because the CCDA is a referral note document.
There are several CCDA document types. Most common is the TOC.
Note also I just added Clinical Notes import to our importer and improved encounter and user handling. You can check out the PR or use current master.

Ok, interesting. I’ll see if there is anything in my CCDA saying it is for a referral. That would be a good explanation. Will also take a look at your updates. Thanks!

In XML document header look for the templateId that identifies as a referral note.

<templateId root="2.16.840.1.113883.10.20.22.1.14" extension="2024-05-01" />

Check out HL7.CDA.US.CCDAR2DOT2\Referral Note - FHIR v4.0.1

Yep, my xml document is 2.16.840.1.113883.10.20.22.1.14 which is for referral note. Still interesting to know that the ccda import tool in the care coordination module creates transaction records. Any idea it it does this for any type of ccda? Or only certain types?