2. Introduction¶
The MGRID messaging SDK allow HL7v3 XML messages or fragments (CMETs) to be translated
- from XML to SQL statements to a table-per-class MGRID HDM RIM database
- from a table-per-class MGRID HDM RIM database to XML
- from XML to JSON
Because the HL7v3 message toolset allows for definition of new message types by defining MIF’s, it is not possible to provide a complete set of pre-generated message parsers for all message types. The focus of this suite is to allow developers to generate message parsers that support message import and export to/from a database, given a defined message model.
See Message Conversion for importing HL7v3 messages into the database, or DB Conversion for exporting HL7v3 structures stored in the database as HL7v3 messages in XML.
See Examples for detailed examples how the MGRID messaging SDK can be used to get from a RMIM design to RMIM instances in the database.
2.1. Directory structure¶
Directory | Description |
---|---|
standards |
Standards directory; used as the repository from which other files can be generated. |
standards/mif |
Model Interchange Format files, sorted per source edition |
standards/xsd |
XML Schema files that correspond to specific MIFs. Again sorted per source edition. |
standards/rim |
Reference Information Model (RIM) files, sorted per normative edition. |
doc |
Documentation in ReST format. |
generators |
Repository for all generators. |
lib |
Library modules used by generators + entry points for converters. |
generated |
Directory tree for all generated files. |
generated/mif |
|
generated/parser |
|
generated/rim |
|
carestatement |
Example project that shows how
CMET REPC_MT000100UV01.Organizer XML fragments can
be translated to SQL. |
ccda |
Example project that shows how Consolidated CDA can be imported, verified, and retrieved from an MGRID HDL/HDM enabled database. |
cda_r2 |
Example project that shows how CDA R2 messages can be imported, verified, and retrieved from an MGRID HDL/HDM enabled database. |
clinicalstatement |
Example project that shows how CMET
COCT_MT530000UV.Organizer XML fragments can be
translated to SQL. |
ihe_qed |
Example project that shows how IHE QED
QUPC_IN043100UV requests can be parsed for
response. Note that a complete ihe_qed is not available,
because of CDA R2/NE2005 class mismatches with NE2008. |
emeasure |
Example project with an Emeasure parser, based on the HQMF March 2010 ballot. |
custom |
Example project that shows how custom defined HL7v3 messages can be used. Message definitions have been drafted using the HL7 RMIM designer, mifs have been built using the HL7v3 generator. |
integration |
Integration examples that show how the bundled converters can be used in web servers/services. |