The Health Level 7 (HL7) Clinical Document Architecture, Release 2 (CDA R2) standardizes the structure and semantics of clinical documents in order to permit interchange. We have applied this standard to generate a platform independent CDA model and write a toolset that permits model specialization, generation of XML implementation artifacts, and provides an interface for clinical data managers. The resulting work was tested using US Department of Veterans Affairs Operative Note templates.