Now that NAACCR XML has begun to change how we think about patient/tumor data, where the nesting looks like this:
<Patient>
<Tumor> </Tumor>
<Tumor> </Tumor>
</Patient>
…it seems like it may be time to mention ways to make the editing process more efficient.
My first concept requires some assistance from the EDITS metafile, and how individual edits are organized into edit sets. Put simply, the edits should be organized into Patient and Tumor levels. The Patient edit set would contain edits dealing only with data items where parentXmlElement is “NaaccrData” or “PatientData”. The Tumor edit set would contain edits where at least one of the referenced data items has parentXmlElement=“TumorData”.
As explained in the XMLExchange Plus Help file, the Edit Engine still expects a flat data buffer, which the client application can generate dynamically from the NAACCR XML data.
Consider the scenario outlined above, where two tumor records are nested within a single patient record. You need run the Patient-level edits only once for both tumors, but you want to run the Tumor-level edits once for each tumor.
Pseudo-code for processing would look something like this:
/* Prepare the flat data buffer according to the selected Layout from the metafile (refer to XMLExchange Plus documentation for details) */
/* For Patient 1 to Patient <n> */
{
/* Load the NaaccrData and PatientData items into the data buffer */
run Patient edit set
/* For Tumor 1 to Tumor <n> */
{
/* Load the TumorData into the data buffer */
run Tumor edit set
/* on to the next Tumor */
}
/* on to the next Patient */
}
This process yields two advantages, IMO:
* Edits are not unnecessarily run multiple times on the same Patient data, so…
* Error reports do not fill up with a lot of noise reporting a Patient-level error more than once
If this concept is adopted for the current NaaccrData, PatientData, TumorData structure, it should be expandable to future nesting structures (hospital/admission, treatment, etc.) when those come along.
I hope this makes sense to everyone.
Kathleen