Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

All documents submitted to the system will get a database entry added to the document table. For repository actor transactions, such as Provide and Register Document Set.b, an entry will also be added to the document table, so as to allow for quick identification of documents. However full metadata for a document won't be added for these repository-type transactions, only the minimum required in order to identify a document. The data-model for the document registry is therefore designed to be flexible. Only a core set of fields will be required to identify a document: a document's unique id, it's content type (MIME) and the patient id. Further document metadata will be added to the document_metadata table, with the types identified via the document_metadata_type table.

The patient_id column on the document table is a foreign key to the existing OpenMRS patient table.

A An submission set is used to identify documents that have been submitted together in a single transaction. Documents can therefore have a link to the submissionset table. Submission sets can also have metadata associated with them, provided by the submissionset_metadata and submissionset_metadata_type tables. This metadata describes the set as a whole rather than individual documents. 

Link to Encounters

TODO How to link encounters to documents

...