parser scripts developed using C#. A script is created to identify
the standard fields in the original dataset, which are then
stored in an XML file to become the header section of the CDA
document. Furthermore, for the section of clinical note details,
the text is processed by another script that reads through the
text from the beginning to the end of the section. When the
script encounters a clinical concept, it will mark the starting
location and then continue to read through until reaching the
end of the concept. The parameters in between the concept are
noted in the process. The whole concept (and its parameters) is
subsequently re-written in an XML file with a structure based
on the knowledge-level data definition. Finally, the standard
values and clinical note details are combined as a CDA document and written to the database.