Convert your FHIR JSON -> XML and back here. The CDA Book is sometimes listed for Kindle here and it is also SHIPPING from Amazon! See here for Errata.

Monday, February 28, 2011

Classifying Clinical Documents

Last night I finished re-reading Carpe Diem, which a Science Fiction Action/Adventure/Romance novel.  That's quite a combination of topics to put into one book.  You might even wonder where to find it in a book store, but the answer to that is easy.  You look under Science Fiction because that is the principal classification used to find it. 

The idea of a "principal classification" is what is behind the XDS Document Class code metadata attribute. Not too long ago, on a call that I was on, a question came up about how to code the document type for a CDA document.  The querant also wanted to understand the relationship of document types to the XDS Document Class Code. 

There's a couple of principles for classifying clinical documents (CDA) that the HL7 Structured Documents workgroup and IHE have come to generally agree upon.

The preferred coding system for classification is LOINC®.  HL7's Structured Documents workgroup picked LOINC in CDA Release 1.0, and has been working with LOINC for several years on document classification.  IHE sticks with the HL7 recommendation.

Precoordinated codes are NOT the preferred way of coding a document.  That's because CDA contains a number of different components in the CDA Header that can be used to classify a clinical document.  These include:
  • Service Performed (H&P, Consult, Surgical Procedure, et cetera)
  • Type of Encounter (ED, Ambulatory, Inpatient)
  • Author Specialty (Cardiology, Radiology, General Practice, Pediatrics, Oncology, et cetera)
  • Facility Type (Skilled Nursing Facility, Home Health, Hospital, et cetera)
  • Author Role (Attending Physician, Consultant, et cetera)
Composing all of these into a document type code might be OK if you could navigate all these facets of the classification system in LOINC, but you cannot do that at the moment. A perfect example of this is to look at the Attending Physician Hospital Admission History and Physical Note.  That's a type of initial assessment and also a type of H&P note (two different items higher up in the hierarchy of services performed), performed by a physician in the attending role at a hospital.  Now, what if I wanted to use that same document specification to admit a patient to a long term care facility?  I wouldn't be able to because of the specificity of the document type.

HL7 tends to pick a preferred code and allow the others with guidance that the other facets must not disagree. For example, you cannot use the Attending Physician Hospital Admission H&P and then show that it was authored by a nurse, or that the healthcare facility was something other than a hospital. IHE just picks the one least restrictive code to use and avoids the issue altogether.  That code in LOINC most commonly refers to the type of service only (e.g., Admission H&P).

If you collect up all the types of services and make a short list of services, say less than 50 or so items long, then you have what IHE called document class.  That way, types could be detailed and could be used to support more specific searches, but document class would support the "drop-down" list of things to query for, e.g., ED records, L&D records, Lab reports, imaging studies, H&P notes, consult notes, procedure notes, et cetera. 

The question come up then, of how one could locate the {facility type} {specialty} {service} note using XDS.  Actually, the question was more detailed than that, I just made it into a meta question for illustration.  In XDS you have all of these different facets in the metadata, and you can combine this metadata either directly in your query, or in filtering steps after the query is finished to show only the relevant data.  Combining class with the author specialty or facility type or other criteria could get you to the Cardiology Procedure note, or opthamology imaging study.

Using that criteria, I can readily find documents based on the type of service performed, which seems to be the most critical classification axis, just like I can find more of that author's books in the Science Fiction section of the bookstore.  Or if need be, I can search by classification, author, specialty, et cetera.