The HL7 Clinical Document Architecture defines an XML architecture for exchange of clinical documents. The encoding is based on XML DTDs included in the specification and its semantics are defined using the HL7 RIM (Reference Information Model) and HL7 registered coded vocabularies.