Documentation ¶
Overview ¶
Package document contains functions needed to generate a ir.Document object.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct { DocumentConfig *config.HL7Document TextGenerator text.Generator }
Generator generates a document.
func (*Generator) Document ¶
Document returns a Document from the given configuration. See pathway.Document for information on how every field is populated. A UniqueDocumentNumber is randomly generated. ActivityDateTime and EditDateTime are set to eventTime.
func (*Generator) UpdateDocumentContent ¶
UpdateDocumentContent updates an existing document, 'dm', content in place based on a pathway.Document configuration, 'dp'. Update type is determined in the pathway can be set to "append" or "overwrite". An error is returned if the set update type is not one of the above mentioned.
Click to show internal directories.
Click to hide internal directories.